// Copyright (C) 2009 Mihai Preda

package calculator;

import android.app.Activity;
import android.os.Bundle;
import arity.calculator.plus.ShowDefinitionsListFragment;

public class ListDefs extends Activity implements ShowDefinitionsListFragment.DefinitionsProvider
{
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);

        getFragmentManager().beginTransaction().replace(android.R.id.content, new ShowDefinitionsListFragment()).commit();
    }

	@Override
	public Defs getDefinitions()
	{
		// TODO: Fix this to not need a global static member variable.
		return Calculator.getDefinitions();
	}
}
